#ifndef USER_H
#define USER_H

#include <QString>
#include <QObject>
#include <QSharedPointer>
#include "Weight.h"

class User
{
private:
    QString login;
    QString password;
    QString token;
    int id;
    QSharedPointer<QVector<QSharedPointer<Weight> > > m_weights;
    // Weights *m_weights;
public:
    User();
    //  ~User();
    void setLogin(QString login1);
    void setPassword(QString password1);
    void setId(int id1);
    void setToken(QString token);
    int getId();
    QString getLogin();
    QString getPassword();
    QString getToken();
    void setWeights( QSharedPointer<QVector<QSharedPointer<Weight> > > m_weights1);
    QSharedPointer<QVector<QSharedPointer<Weight> > > getWeights();
};
#endif // USER_H
